package com.hcb.micro.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.OrderLogisticsMapper;
import com.hcb.micro.dto.OrderLogistics;
import com.hcb.micro.service.IOrderLogisticsService;

@Service("OrderLogisticsService")
public class OrderLogisticsServiceImpl implements IOrderLogisticsService {

	@Autowired
	OrderLogisticsMapper orderLogisticsMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return orderLogisticsMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(OrderLogistics record) {
		return orderLogisticsMapper.insert(record);
	}

	@Override
	public int insertSelective(OrderLogistics record) {
		return orderLogisticsMapper.insertSelective(record);
	}

	@Override
	public OrderLogistics selectByPrimaryKey(Integer id) {
		return orderLogisticsMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(OrderLogistics record) {
		return orderLogisticsMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(OrderLogistics record) {
		return orderLogisticsMapper.updateByPrimaryKey(record);
	}

	@Override
	public OrderLogistics selectByOrderId(Integer orderId) {
		return orderLogisticsMapper.selectByOrderId(orderId);
	}

}
